package com.situ.mall.base.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.situ.mall.base.util.C;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * ClassName: MemberOrderInfo
 * Package: com.situ.mall.admin.vo
 * Description:
 *
 * @Author Darling_达
 * @Create 2023-04-14 08:56
 * @Version 1.0
 */

@Data
@AllArgsConstructor
@NoArgsConstructor
public class MemberOrderInfo {
    private Integer id;
    private String code;
    private String mcode;

    @JsonFormat(pattern = "yyyy年MM月dd日 HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime createtime;
    private Integer status;
    private String sta;
    private BigDecimal price;
    private String remark;

    public String getSta(){
        return C.PAY_STATUS[status];
    }

}
